package com.example.depcontrol.service;

import com.example.depcontrol.pojo.Emp;
import com.example.depcontrol.pojo.PageBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

public interface EmpService {

    PageBean page(Integer page, Integer pageSize,
                  String name, Short gender, LocalDate begin, LocalDate end);

    void deleteById(List<Integer> ids);

    void addEmp(Emp emp);

    Emp getById(Integer id);

    void updateById(Emp emp);

    Emp login(Emp emp);
}
